//
//  BaseWebViewController.h
//  Root
//
//  Created by scho on 2019/1/10.
//  Copyright © 2019 Root. All rights reserved.
//

#import "BaseViewController.h"
#import <WebKit/WebKit.h>

NS_ASSUME_NONNULL_BEGIN

@interface BaseWebViewController : BaseViewController <WKNavigationDelegate, WKUIDelegate>

@property (assign, nonatomic) BOOL isUseH5Title;
@property (copy, nonatomic) NSString *webTitle;
@property (nonatomic, copy) NSString *urlString;
@property (strong, nonatomic) NSDictionary *customHttpHeaderInfo; //for vendor link, optional
@property (strong, nonatomic, readonly) WKWebView *webView;

@property (nonatomic, assign) NSInteger top;
@property (nonatomic, assign) NSInteger bottom;

//or
@property (nonatomic, strong) NSURL *url;

// helper
- (void)startLoadRequest;

// adjust top and bottom of web view.
- (void)adjustWebViewWithTop:(CGFloat)top bottom:(CGFloat)bottom;

@end

NS_ASSUME_NONNULL_END
